package com.cxf.service;

import com.cxf.pojo.User;

import java.util.List;

public interface UserService {

    User getUserByName(String userName);
	Integer getUserIdByName(String userName);
	void addUser(User user); //添加用户
    void updateUser(User user); //更新用户信息
	User findUserById(Integer userId); //通过用户ID查找用户
	Integer getUserIdByUserName(String userName);
	List<User> getAllUser();
	void validate(String userName, String password) throws Exception; //验证身份
	void deleteUser(User user);//删除用户

}
